<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${name}"></div>


<div shiro:authenticated>
    欢迎：<shiro: principal/>登录
</div>
<!--模板下必须通过Controller跳转 -->
<!-- 如果有此权限标签内容则会显示，如果为假则不显示 -->
<div shiro:hasPermission="user:add">
    <a href="/add">add.html</a>
</div>
<div shiro:hasPermission="user:remove">
    <a href="/remove">remove.html</a>
</div>

</body>
</html>